<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <link rel="stylesheet" href="../dest/index.css" />
    <script src="https://unpkg.com/vue@next"></script>
    <script src="../dest/index.js"></script>
    <div id="app"></div>
    <script>
      console.log(window.V3ComponentsWsj, 7788);
      const app = window.Vue.createApp({
        template: `<div>
            <pl-button label="label"/>
            <pl-button>插槽内容</pl-button>
            <pl-input ref="myInput" status="error"/>
            <pl-button @click="outerFocus">outFocus</pl-button>
        </div>`,
        setup() {
          //   const inputRef = window.V3ComponentsWsj.Input.use.ref("myInput");
          const inputRef = window.V3ComponentsWsj.Input.use.ref("myInput");
          return {
            outerFocus() {
              inputRef.value.methods.focus(false);
            },
          };
        },
      });
      app.use(window.V3ComponentsWsj);
      app.mount("#app");
    </script>
  </body>
</html>
